<?php

namespace app\api\model;

use think\Model;
class Posts extends Model
{

    //获取指定字段
    public static function getValue($where,$field){
        return self::where($where)->value($field);
    }

}
